//
// Created by 25137 on 2024/2/8.
//

#ifndef BOOST_ASIO_MSERIALPORTQ_H
#define BOOST_ASIO_MSERIALPORTQ_H

#include "lib/mserialport.h"
#include <QObject>
#include <QScopedPointer>
class MSerialPortQ: public QObject,public MSerialPort{
    Q_OBJECT
public:
    explicit MSerialPortQ(QObject* parent = nullptr);
    MPort::COM_STATUS open(const QString&, int baud = 115200);
    void callback(MIODeviceBase& device);
Q_SIGNALS:
        void readyRead(MIODeviceBase& device);
public:
};


#endif //BOOST_ASIO_MSERIALPORTQ_H
